<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<div class="header  font-50 serif bold margin-top padding-horizontal float-left">
	<span class="font-dark">D</span><span class="font-lightgrey-2">elivery</span>
	<span class="font-dark">M</span><span class="font-lightgrey-2">anagement</span>
	<span class="font-dark">S</span><span class="font-lightgrey-2">ystem</span>
</div>
<div class="float-right user-login-status border-all round-corner margin-top-dbl padding-vertical-half padding-horizontal">
	<div>
		<c:choose>
			<c:when test="${empty user}">
				<div class="margin-bottom-half font-13-18 capitalize">
					<fmt:message key="msg.please"/> <a href="/dms/reg-login.html#log-in"><fmt:message key="msg.login"/></a>
					<i class="icon-home"></i>
				</div>
				<div class="font-11 capitalize">
					<a href="/dms/reg-login.html#reg"><fmt:message key="msg.registration"/></a>
				</div>
				<div class="font-11">
					<a href="/dms/reg-login.html#forgot"><fmt:message key="msg.forgot-your-password"/></a>
				</div>
				<div class="font-11 capitalize">
					<a href="/dms/reg-login.html#forgot"><fmt:message key="msg.driver"/> <fmt:message key="msg.login"/></a>
				</div>
			</c:when>
			<c:otherwise>
				<div class="margin-bottom-half font-13-18 greeting">
					<span class="capitalize"><fmt:message key="msg.welcome"/></span> <a href="/dms/my-profile.html"><span title='<c:out value="${user.userName}"/>'><c:out value="${user.userName}"/></span></a>
				</div>
				<div class="font-12 capitalize">
					<a href="/dms/my-profile.html"><fmt:message key="msg.my-profile"/></a>
				</div>
				<div class="font-12 capitalize">
					<a href="/dms/Logout.html"><fmt:message key="msg.logout"/></a>
				</div>
			</c:otherwise>
		</c:choose>
	</div>
</div>
<ul class="menu ${highlightItem} full-width font-14 float-left border-top border-bottom">
	<c:forEach items="${menuList}" var="menu" varStatus="status">
		<li class="menu-item ${menu.cssAlignment}  <c:if test="${selectedMenuItem eq menu.cssSelected}">selected</c:if>">
			<a <c:if test="${selectedMenuItem ne menu.cssSelected}">href='<c:url value="${menu.url }"/>'</c:if>><fmt:message key="${menu.label}"/></a>
		</li>
	</c:forEach>
</ul>
<div class="clear-both"></div>
